Use Unicode typography in new translatable strings
authorPiotr Drąg <piotrdrag@gmail.com>
Fri, 8 Feb 2019 18:24:53 +0000 (19:24 +0100)
committerPiotr Drąg <piotrdrag@gmail.com>
Fri, 8 Feb 2019 18:24:53 +0000 (19:24 +0100)
See https://developer.gnome.org/hig/stable/typography.html

gtk/gtkwidget.c
gtk/tools/gtk-builder-tool-simplify.c

index db8434998d09730df8580b710eba2599c62c8747..92dc835842907807a6ce47909ee474064d63c8f9 100644 (file)
@@ -1314,7 +1314,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
   widget_props[PROP_OVERFLOW] =
       g_param_spec_enum ("overflow",
                          P_("Overflow"),
-                         P_("How content outside the widget's content area is treated"),
+                         P_("How content outside the widgets content area is treated"),
                          GTK_TYPE_OVERFLOW,
                          GTK_OVERFLOW_VISIBLE,
                          GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
index 1847e37c99b7a969c051f43f9b70e2d6c07c3ff8..beb4edadabedfb5baa5636c18b6a0b03787adb2e 100644 (file)
@@ -772,7 +772,7 @@ simplify_file (const char *filename,
 
   if (!g_file_get_contents (filename, &buffer, NULL, &error))
     {
-      g_printerr (_("Can’t load '%s': %s\n"), filename, error->message);
+      g_printerr (_("Can’t load “%s”: %s\n"), filename, error->message);
       return FALSE;
     }
 
@@ -783,7 +783,7 @@ simplify_file (const char *filename,
   context = g_markup_parse_context_new (&parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &data, NULL);
   if (!g_markup_parse_context_parse (context, buffer, -1, &error))
     {
-      g_printerr (_("Can’t parse '%s': %s\n"), filename, error->message);
+      g_printerr (_("Can’t parse “%s”: %s\n"), filename, error->message);
       return FALSE;
     }
 
@@ -802,13 +802,13 @@ simplify_file (const char *filename,
 
       if (!g_file_get_contents (data.output_filename, &content, &length, &error))
         {
-          g_printerr (_("Failed to read '%s': %s\n"), data.output_filename, error->message);
+          g_printerr (_("Failed to read “%s”: %s\n"), data.output_filename, error->message);
           return FALSE;
         }
 
       if (!g_file_set_contents (data.input_filename, content, length, &error))
         {
-          g_printerr (_("Failed to write %s: '%s'\n"), data.input_filename, error->message);
+          g_printerr (_("Failed to write %s: “%s”\n"), data.input_filename, error->message);
           return FALSE;
         }
     }